---
title: Speech
description: A library that provides access to text-to-speech functionality.
sourceCodeUrl: 'https://github.com/expo/expo/tree/main/packages/expo-speech'
packageName: 'expo-speech'
iconUrl: '/static/images/packages/expo-speech.png'
platforms: ['android', 'ios', 'web']
---

import APISection from '~/components/plugins/APISection';
import { APIInstallSection } from '~/components/plugins/InstallSection';
import { SnackInline } from '~/ui/components/Snippet';

`expo-speech` provides an API that allows you to utilize Text-to-speech functionality in your app.

## Installation

<APIInstallSection />

## Usage

<SnackInline label='Speech' dependencies={['expo-speech']}>

```jsx
import * as React from 'react';
import { View, StyleSheet, Button } from 'react-native';
import * as Speech from 'expo-speech';

export default function App() {
  const speak = () => {
    const thingToSay = '1';
    Speech.speak(thingToSay);
  };

  return (
    <View style={styles.container}>
      <Button title="Press to hear some words" onPress={speak} />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    backgroundColor: '#ecf0f1',
    padding: 8,
  },
});
```

</SnackInline>

## API

```js
import * as Speech from 'expo-speech';
```

<APISection packageName="expo-speech" apiName="Speech" />
